package com.todo.event.activity.application.service;

import com.todo.common.common.entity.response.page.PageResult;
import com.todo.event.activity.application.entity.bo.EventDecisionBO;
import com.todo.event.activity.application.entity.condition.EventDecisionConditionBO;
import com.todo.event.activity.common.enums.EventDecisionStatusEnum;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/7 13:13
 * @description
 */
public interface EventDecisionService {

    /**
     * 新增事件决策
     *
     * @param eventDecisionBO
     * @return
     */
    Boolean insertEventDecision(EventDecisionBO eventDecisionBO);

    /**
     * 更新事件决策
     *
     * @param eventDecisionBO
     * @return
     */
    Boolean updateEventDecision(EventDecisionBO eventDecisionBO);

    /**
     * 根据主键删除事件决策
     *
     * @param id
     * @return
     */
    Boolean removeEventDecision(Long id);

    /**
     * 根据主键查询事件决策
     *
     * @param id
     * @return
     */
    EventDecisionBO queryEventDecisionById(Long id);

    /**
     * 根据事件code查询单事件决策
     *
     * @param eventCode
     * @return
     */
    List<EventDecisionBO> querySingleEventListByCode(String eventCode);

    /**
     * 根据事件code列表查询单事件决策
     * @param eventCodeList
     * @return
     */
    List<EventDecisionBO> querySingleEventListByCodeList(List<String> eventCodeList);

    /**
     * 根据事件code查询多事件决策
     *
     * @param eventCode
     * @return
     */
    List<EventDecisionBO> queryMultipleEventListByCode(String eventCode);

    /**
     * 根据事件code列表查询多事件决策
     * @param eventCodeList
     * @return
     */
    List<EventDecisionBO> queryMultipleEventListByCodeList(List<String> eventCodeList);

    /**
     * 更新事件决策状态
     *
     * @param id
     * @param oldStatus
     * @param newStatus
     * @return
     */
    Boolean updateEventDecisionStatus(Long id, EventDecisionStatusEnum oldStatus, EventDecisionStatusEnum newStatus);

    /**
     * 多条件查询事件决策
     *
     * @param eventInfoCondition
     * @return
     */
    PageResult<EventDecisionBO> queryEventDecisionPageByCondition(EventDecisionConditionBO eventInfoCondition);

}
